package per.turtle.common.mq.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;
import per.turtle.common.mq.po.Msg;

@Component
public class TopicListener1 {

    @RabbitListener(queues = "topic_queue1")
    public void displayTopic(Msg msg) {
        System.out.println("从topic_queue1取出消息" + msg.toString());
    }

}
